tools/xend, xm: add a command to get the state of VMs
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 29 Jun 2010 13:52:51 +0000 (14:52 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 29 Jun 2010 13:52:51 +0000 (14:52 +0100)
commitb616bee08b083292f1153be971e49655b5fc24f0
tree4f5141d82d74522de2566521cfbc579979b49e2b
parent2aaf60746f7a9586a064e8f680f0c4aab4accc4b
tools/xend, xm: add a command to get the state of VMs

add a command "domstate" to get the state of Vms, which may have one state of
{'shutoff', 'idle','shutdown','running','crashed','paused' or 'paused by
admin"}.

For case of pause, I distinguish it into two conditions. One is "paused" the
other is "paused by admin".
"pasued by admin" means that users pause a domain voluntary by "xm paused
VM" or " API"

Signed-off-by James (Song Wei) <jsong@novell.com>
tools/python/xen/xend/XendDomain.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/server/SrvDomain.py
tools/python/xen/xm/main.py